b2abc8e5ba861fd2c357be2ad4d4485ab56177ac,drools-testing-plugin/src/org/drools/testing/plugin/forms/InputForm.java,InputForm,createFormContent,#IManagedForm#,36
Before Change
MessageDialog.openError(this.getSite().getShell(), "Error", e.getMessage());
}
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
form.setText("Rtl Input Capture"); //$NON-NLS-1$
TableWrapLayout layout = new TableWrapLayout();
layout.numColumns = 2;
form.getBody().setLayout(layout);
Section section = toolkit.createSection(form.getBody(),
Section.DESCRIPTION|Section.TITLE_BAR|
Section.TWISTIE|Section.EXPANDED);
TableWrapData td = new TableWrapData(TableWrapData.FILL);
After Change
MessageDialog.openError(this.getSite().getShell(), "Error", e.getMessage());
}
form = managedForm.getForm();
toolkit = managedForm.getToolkit();
form.setText(Messages.getString("InputForm.title")); //$NON-NLS-1$
form.setBackgroundImage(TestResourcesPlugin.getDefault().getImage(TestResourcesPlugin.IMG_FORM_BG));
TableWrapLayout layout = new TableWrapLayout();
form.getBody().setLayout(layout);
layout.numColumns = 2;
toolkit.createLabel(form.getBody(), Messages.getString("FormView.testLabel")); //$NON-NLS-1$
Text text = toolkit.createText(form.getBody(), "Foo"); //$NON-NLS-1$
TableWrapData td = new TableWrapData(TableWrapData.FILL_GRAB);
text.setLayoutData(td);
Section section = toolkit.createSection(form.getBody(),
Section.DESCRIPTION|Section.TITLE_BAR|
Section.TWISTIE|Section.EXPANDED);
td = new TableWrapData(TableWrapData.FILL_GRAB);